<template>
  <view class="myResume" style="width:100%">
    <image style="width:100%;height100%" @click="openIMg" :src="positive" mode="widthFix" />
  </view>
</template>
<script>
import { mapState } from "vuex";
export default {
  name: "MineTab",
  props: {},
  data() {
    return {
      positive: ""
    };
  },
  computed: {
    ...mapState(["user", "site", "jobSeeker"]),
    avatar() {
      // console.log("wqeqwe", this.user.avatar);
      return this.user.avatar
        ? `${this.user.avatar}?token=${uni.getStorageSync("token")}`
        : this.weixinInfo.avatarUrl
        ? this.weixinInfo.avatarUrl
        : "";
    }
  },
  onLoad(e) {
    this.positive = e.positive;
  },
  methods: {
    openIMg() {
      wx.previewImage({
        urls: [this.positive], // 需要预览的图片http链接列表，多张的时候，url直接写在后面就行了
        success: function(res) {},
        fail: function(res) {},
        complete: function(res) {}
      });
    }
  }
};
</script>
